import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import api from './api/index'
import './plugins/vant.js'
import './plugins/nut.js'
import './assets/iconfont/iconfont.css'
import '@/assets/css/reset.css'
import FilmTitle from './components/home/film_title.vue'
import ComeBackHome from './components/home/comebackhome.vue'

Vue.config.productionTip = false
Vue.filter('imgFilter', function (data) {
  return data.replace('w.h', '') + '@1l_1e_1c_128w_180h'
})
Vue.filter('imgFilter1', function (data) {
  return data.replace('w.h', '') + '@1l_1e_1c_170w_230h'
})

Vue.component('Film-title', FilmTitle)
Vue.component('Come-back-home', ComeBackHome)
new Vue({
  router,
  store,
  api,
  render: h => h(App)
}).$mount('#app')
